<?php

declare(strict_types=1);

namespace app\agent\controller\order;

use app\agent\controller\Controller;
use app\agent\model\order\Power as PowerModel;

class Power extends Controller
{
    /**
     * 电费订单列表
     */
    public function index()
    {
        $model = new PowerModel;
        $data = input('post.');
        $data['agent'] = $this->agent;
        return $model->getList($data);
    }

    /**
     * Excel 批量导入
     */
    public function batchImport()
    {
        $model = new PowerModel;
        $data = input('post.');
        return $model->batchImport($data, $this->agent['id']);
    }
}
